<form action="<?php echo $aUrl; ?>" method="post" name="adminForm">
<div id="config-document">

	<!-- start page-site -->
	<div id="page-site">
	<table class="noshow">
		<tr>
			<td width="65%">
			<fieldset class="adminform">
			<legend>用户信息</legend>
			<table class="admintable" cellspacing="1">
			<tbody>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="登录名::">登录名</span>
					</td>
					<td>
						<?php if (CControllerConfig::getAction() == 'edit') : ?>
						<?php echo $model->user_loginname; ?>
						<?php else : ?>
						<input type="text" name="users[user_loginname]" class="text_area" size="50" value="<?php echo $model->user_loginname; ?>" />
						<span class="prompt"><?php echo $model->getError('user_loginname'); ?></span>
						<?php endif; ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="登录密码::">登录密码</span>
					</td>
					<td>
						<input type="text" name="users[user_password]" class="text_area" size="50" value="<?php echo $user_password; ?>" />
						<span class="prompt"><?php echo $model->getError('user_password'); ?></span>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="再次输入密码::">再次输入密码</span>
					</td>
					<td>
						<input type="text" name="users[user_repassword]" class="text_area" size="50" value="<?php echo $user_repassword; ?>" />
						<span class="prompt"><?php echo $model->getError('user_repassword'); ?></span>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="所属管理组::如果没有“管理员管理”权限，修改用户时，只能选中“注册会员”">所属管理组</span>
					</td>
					<td> 
						<select name="users[group_id]" class="inputbox" size="1">
							<?php foreach ($groups as $group) : ?>
							<option value="<?php echo $group->group_id; ?>" <?php if ($group->group_id == $model->group_id) echo 'selected'; ?>><?php echo $group->group_name; ?></option>
							<?php endforeach; ?>
						</select>
					</td> 
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="用户性别::">用户性别</span>
					</td>
					<td>
						<input type="radio" name="users[user_sex]" class="inputbox" value="m" <?php if ($model->user_sex == 'm') echo 'checked'; ?>/>
						<label for="user_sex0">男</label>
						<input type="radio" name="users[user_sex]" class="inputbox" value="f" <?php if ($model->user_sex == 'f') echo 'checked'; ?>/>
						<label for="user_sex1">女</label> 
						<input type="radio" name="users[user_sex]" class="inputbox" value="u" <?php if ($model->user_sex == 'u') echo 'checked'; ?> />
						<label for="user_sex2">保密</label> 
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="用户邮箱::">用户邮箱</span>
					</td>
					<td>
						<input type="text" name="users[user_email]" class="text_area" size="50" value="<?php echo $model->user_email; ?>" />
						<span class="prompt"><?php echo $model->getError('user_email'); ?></span>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="用户昵称::">用户昵称</span>
					</td>
					<td>
						<input type="text" name="users[user_nicename]" class="text_area" size="50" value="<?php echo $model->user_nicename; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="个性签名::">个性签名</span>
					</td>
					<td>
						<textarea name="users[display_name]" class="text_area" style="width:400px; height:50px" cols="50" rows="3"><?php echo $model->display_name; ?></textarea>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="用户状态::">用户状态</span>
					</td>
					<td>
						<input type="radio" name="users[user_status]" class="inputbox" value="n" <?php if ($model->user_status == 'n') echo 'checked'; ?>/>
						<label for="user_status1">无效</label>
						<input type="radio" name="users[user_status]" class="inputbox" value="y" <?php if ($model->user_status != 'n') echo 'checked'; ?> />
						<label for="user_status0">激活</label>
					</td>
				</tr>
			</tbody>
			</table>
			</fieldset>
			</td>
		</tr>
	</table>
	</div>
	<!-- end page-site -->

</div>
<input type="hidden" name="id" value="<?php echo $model->user_id; ?>" />
<input type="hidden" name="do" value="" /> 
<div class="clr"></div>	
</form>